package com.ruoyi.epidemic.mapper;

import com.ruoyi.epidemic.domain.EpidemicUserDept;
import com.ruoyi.epidemic.domain.WxCpSysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 填报用户
 */
public interface EpidemicWriteDeptMapper {

    List<WxCpSysUser> selectWriteUserList(WxCpSysUser wxCpSysUser);

    int selectCountByUserIdAndDeptId(@Param("userId") Long userId, @Param("deptId")Long deptId);

    int insertWriteUserDept(EpidemicUserDept epidemicUserDept);

    /**
     * 批量删除疫情防控用户-部门信息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteWriteUserDeptByIds(String[] ids);

    WxCpSysUser selectWriteUser(Long id);

    public int updateWriteUserDept(EpidemicUserDept epidemicUserDept);
}
